//
//  TrafficViewController.m
//  项目A_百思不得姐
//
//  Created by wudongyang on 16/6/7.
//  Copyright © 2016年 wudongyang. All rights reserved.
//

#import "TrafficViewController.h"

@interface TrafficViewController ()

@end

@implementation TrafficViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // 给导航栏标题添加图片(百思不得姐)
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    self.view.backgroundColor = [UIColor whiteColor];
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    [webView setUserInteractionEnabled:YES];
    [webView setDelegate:self];
    webView.delegate = self;
    [webView setOpaque:NO];
    [webView setScalesPageToFit:YES];
    [self.view addSubview:webView];
    
    
    NSString *str = @"https://api.stream.zcgames.net/static/?td_channelid=732527831050227712";
    NSURL *url1 = [NSURL URLWithString:str];
    [webView loadRequest:[NSURLRequest requestWithURL:url1]];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
